<%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8" %>
<%@page import="org.ipo.mm.web.util.pager.AbstractPager, org.ipo.mm.web.util.ConstantManager, java.util.Collection, org.ipo.mm.web.util.security.SecurityManager, java.util.Vector" %>
<%@taglib prefix="l" uri="http://struts.apache.org/tags-logic" %>
<%@taglib prefix="b" uri="http://struts.apache.org/tags-bean" %>
<%@taglib prefix="h" uri="http://struts.apache.org/tags-html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <link href="<%= request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" />

        <!-- calendar -->
        <script src="src/js/jscal2.js"></script>
        <script src="src/js/lang/en.js"></script>
        <link rel="stylesheet" type="text/css" href="src/css/jscal2.css" />
        <link rel="stylesheet" type="text/css" href="src/css/border-radius.css" />
        <!--   <link rel="stylesheet" type="text/css" href="src/css/win2k/win2k.css" />-->

        <!-- calendar end -->
    </head>
    <body>
        <h1><b:message key="meetings_action_action"/></h1>
        <h:form action="/protected/action_crud?&method=${param['method']}">
            <table border="0">
                <tr>
                    <td><b:message key="meetings_action_name"/></td>
                    <td><h:text property="actionName" maxlength="512" size="100"/> </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <span class="error" ><h:errors property="actionName"/></span>
                    </td>
                    

                </tr>
                <tr>
                    <td><b:message key="meetings_action_action" /></td>
                    <td><h:text property="actionDesc" maxlength="512" size="100"/></td>
                </tr>

                <tr>
                    <td></td>
                    <td>
                        <span class="error" ><h:errors property="actionDesc"/></span>
                    </td>
                    

                </tr>
                <tr>
                    <td><b:message key="meetings_action_due_date"/></td>
                    <td>
                        <h:text styleId="actionDueDate" property="actionDueDate"/>
                        <button type="button" id="actionDueDateButton">...</button>
                        <script type="text/javascript">//<![CDATA[

                            var cal = Calendar.setup({
                                onSelect: function(cal) { cal.hide() },
                                selectionType : Calendar.SEL_SINGLE


                            });
                            //cal.manageFields("dateButton", "date", "%d/%m/%Y %H:%M");
                            cal.manageFields("actionDueDateButton", "actionDueDate", "%d/%m/%Y");

                            //]]></script>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <span class="error" ><h:errors property="actionDueDate"/></span>
                    </td>
                    

                </tr>

                <tr>
                    <td><b:message key="meetings_action_status"/></td>
                    <td>
                        <h:select property="actionStatus">

                            <h:option value="PENDING"><b:message key="actions_pending" /></h:option>
                            <h:option value="FINISHED"><b:message key="actions_finished" /></h:option>
                        </h:select></td>
                </tr>
            </table>

            <c:if test="${param['method'] == 'showCreateActionsForm'}">
                <h:submit property="operation"><b:message key="gen_create"/></h:submit>
            </c:if>

            <c:if test="${param['method'] == 'showUpdateActionsForm'}">
                <h:submit property="operation"><b:message key="gen_update"/></h:submit>
            </c:if>

            <h:cancel><b:message key="gen_cancel"/></h:cancel>

        </h:form>



    </body>
</html>
